package com.lightjet.macross.base.auth.config;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author : lijia
 * @version : 1.0 2019-10-23 14:19
 * description : 明文加密--用于postman测试
 */
public class NoopPasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return s.equals(charSequence.toString());
    }
}